Holds static utility functions to interact with the ALIGNMENT enum class values. More...
Static Public Member Functions | |
static nkMemory::StringView | enumToString (ALIGNMENT toConvert) |
static ALIGNMENT | stringToEnum (const nkMemory::StringView &toConvert) |
Holds static utility functions to interact with the ALIGNMENT enum class values.
|
static |
Converts an ALIGNMENT value to a string representation. Value range is :
Enum value | String value |
---|---|
ALIGNMENT::LEFT_TOP | 'LEFT_TOP' |
ALIGNMENT::CENTER | 'CENTER' |
ALIGNMENT::RIGHT_BOTTOM | 'RIGHT_BOTTOM' |
toConvert | The value to convert to a string. |
|
static |
Converts a string to an ALIGNMENT value. Value range is :
String value | Enum value |
---|---|
'LEFT_TOP' | ALIGNMENT::LEFT_TOP |
'CENTER' | ALIGNMENT::CENTER |
'RIGHT_BOTTOM' / Anything else | ALIGNMENT::RIGHT_BOTTOM' |
toConvert | The string to convert. |